/**
 * 
 */
package im.route.api.config;

import org.slf4j.MDC;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

/**
 * @author kaweepatt.c
 *
 */
@Configuration
public class ChannelNoProvider implements Serializable {
    private static final long serialVersionUID = 7143352506135046158L;

    public String getChannelNo() {
        String channelNo = MDC.get("channelNo");
        return channelNo;
    }

    public void setChannelNo(String channelNo) {
        MDC.put("channelNo", channelNo);
    }

}
